import {useAdminInfoStore} from "@/store/adminInfo.js";

// coach:add
export default function hasBtnPermission(permission) {
    //['coach:add','admin:add']
    const adminInfoStore = useAdminInfoStore()
    const btns = adminInfoStore.btns
    return btns.indexOf(permission) != -1
}